package com.zg.ktcomwan.data

import com.squareup.moshi.JsonClass
import kotlinx.serialization.Serializable

/***
 * @Author:      zxd
 * @CreateDate:  2021/6/2 13:47
 * @Description:
 */
//@JsonClass(generateAdapter = true)
@Serializable
data class BaseResp<T>(
    var `data`: T,
    var errorCode: Int,
    var errorMsg: String
)

@Serializable
data class BaseListResp<T>(
    var curPage: Int,
    var offset: Int,
    var over: Boolean,
    var pageCount: Int,
    var size: Int,
    var total: Int,
    var datas: List<T>
)